package com.faradel.pharmapp.dao;

import java.io.Serializable;
import java.util.List;

/**
 * The GenericDAO implements
 * selectAll entities from table
 * save entity to table
 * update entity in table
 * delete entity from table
 * get entity from table
 * 
 * @author michaeledegbe
 * 
 * @param <T>
 * @param <PK>
 */
public interface GenericDAO<T, PK extends Serializable>
{
    public List<T> selectAll();

    public void save(T entity);

    public void update(T entity);

    public void delete(T entity);

    public T get(PK id);

}
